package com.qut.graduate.busrtquery.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * //"routeid":"22","station":"印江路停车场","time":"德江路停车场 05:10-22:25","station1":"胜利桥","time1":"胜利桥 04:30-22:20",
 * // "price":"无人售票 普通1元 空调2元","line":"德江路停车场-胜利桥","line1":"德江路停车场-胜利桥","line2":"商水路-印江路",
 * // "routename":"22路"
 */
public class BusLineInfo implements Parcelable {
    private String routeid;
    private String station;
    private String time;
    private String station1;
    private String time1;
    private String price;
    private String line;
    private String line1;
    private String line2;
    private String routename;

    public BusLineInfo() {
    }

    protected BusLineInfo(Parcel in) {
        routeid = in.readString();
        station = in.readString();
        time = in.readString();
        station1 = in.readString();
        time1 = in.readString();
        price = in.readString();
        line = in.readString();
        line1 = in.readString();
        line2 = in.readString();
        routename = in.readString();
    }

    public static final Creator<BusLineInfo> CREATOR = new Creator<BusLineInfo>() {
        @Override
        public BusLineInfo createFromParcel(Parcel in) {
            return new BusLineInfo(in);
        }

        @Override
        public BusLineInfo[] newArray(int size) {
            return new BusLineInfo[size];
        }
    };

    @Override
    public String toString() {
        return "BusLineInfo{" +
                "routeid='" + routeid + '\'' +
                ", station='" + station + '\'' +
                ", time='" + time + '\'' +
                ", station1='" + station1 + '\'' +
                ", time1='" + time1 + '\'' +
                ", price='" + price + '\'' +
                ", line='" + line + '\'' +
                ", line1='" + line1 + '\'' +
                ", line2='" + line2 + '\'' +
                ", routename='" + routename + '\'' +
                '}' + "\n";
    }

    public String getRouteid() {
        return routeid;
    }

    public void setRouteid(String routeid) {
        this.routeid = routeid;
    }

    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getStation1() {
        return station1;
    }

    public void setStation1(String station1) {
        this.station1 = station1;
    }

    public String getTime1() {
        return time1;
    }

    public void setTime1(String time1) {
        this.time1 = time1;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getLine() {
        return line;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public String getLine1() {
        return line1;
    }

    public void setLine1(String line1) {
        this.line1 = line1;
    }

    public String getLine2() {
        return line2;
    }

    public void setLine2(String line2) {
        this.line2 = line2;
    }

    public String getRoutename() {
        return routename;
    }

    public void setRoutename(String routename) {
        this.routename = routename;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(routeid);
        parcel.writeString(station);
        parcel.writeString(time);
        parcel.writeString(station1);
        parcel.writeString(time1);
        parcel.writeString(price);
        parcel.writeString(line);
        parcel.writeString(line1);
        parcel.writeString(line2);
        parcel.writeString(routename);
    }
}
